package com.code.softeem.lianxi.demo2;

/**
 * @author xiyu
 * @version 1.0
 * @date 2025/3/20 14:52
 * @description
 */
public class dongwu {
    private String maose;
    private String tuishu;

    public dongwu() {
    }

    public dongwu(String maose, String tuishu) {
        this.maose = maose;
        this.tuishu = tuishu;
    }

    public String getMaose() {
        return maose;
    }

    public void setMaose(String maose) {
        this.maose = maose;
    }

    public String getTuishu() {
        return tuishu;
    }

    public void setTuishu(String tuishu) {
        this.tuishu = tuishu;
    }

    public void eat(){
        System.out.println("动物在吃饭");
    }

    @Override
    public String toString() {
        return "dongwu{" +
                "maose='" + maose + '\'' +
                ", tuishu='" + tuishu + '\'' +
                '}';
    }
}
